package com.yyge.controller.admin.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyge.common.vo.resp.PageResp;
import com.yyge.controller.admin.dishflavor.req.DishFlavorReq;
import com.yyge.controller.admin.dishflavor.resp.DishFlavorResp;
import com.yyge.controller.admin.product.dto.DishFlavorProperty;
import com.yyge.entity.DishFlavor;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DishFlavorConverter {
    DishFlavorConverter MAPPER = Mappers.getMapper(DishFlavorConverter.class);

//     @Mapping(source="records",target="rows")
//     PageResp page2vo(Page list);

     DishFlavor dishflavor2req(DishFlavorReq req);

     //DishFlavor dishflavor2req(DishFlavorProperty req);
     List<DishFlavorResp> dishflavor2resp(List<DishFlavor> list);
}
